package com.gc.business.service;

import com.gc.business.domain.ProjectItem;
import com.gc.business.domain.UpkeepProject;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 电梯保养项目 服务层
 * 
 * @author hruiyan
 * @date 2020-11-18
 */
public interface IUpkeepProjectService extends IService<UpkeepProject> {
    /**
    * 列表查询
    */
    List<UpkeepProject> list(UpkeepProject upkeepProject);

    /**
     * 保存项目清单列表
     * @param projectItem
     * @param templateId
     * @return
     */
    void saveProjectItemList(ProjectItem projectItem,Long templateId);


    /**
     * 根据模板ID删除
     * @param templateId
     * @return
     */
    int deleteByTemplateId(Long templateId);
}
